package spring.provider;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试使用接口，服务提供者
 */
@RestController
public class Controller {
    @RequestMapping("/car/{name}")
    public String car(@PathVariable String name){
        return "03：car的name：" + name;
    }
    @RequestMapping("/plane/{name}")
    public String plane(@PathVariable String name){
        return "03：plane的name：" + name;
    }
}
